const md5 = require("md5");
const { loginDao, updateAdminDao } = require("../dao/adminDao");
const { ValidationError } = require("../utils/errors");
const jwt = require("jsonwebtoken");
const { formatResponse } = require("../utils/tool");
const { findBannerDao, updateBannerDao } = require("../dao/bannerDao");

// banner
module.exports.findBannerService = async function () {
  const data = await findBannerDao();
  return data;
};

// banner
module.exports.updateBannerService = async function (bannerArr) {
  const data = await updateBannerDao(bannerArr);

  return data;
};
